﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JiHuaZXQKGZ.aspx.cs" Inherits="Web.Pages.YongShui._15.BaoBiaoGL.DanJuDY.JiHuaZXQKGZ" Theme="Default" %>
<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>计划执行情况告知</title>
    <script src="../../../../JS/jquery-1.11.1.min.js"></script>
    <script src="../../../../PageJS/wap.js"></script>
    <script>
        function print1() {
            var params = new Array();
            params.push("V_YONGHUH:" + txtYonghuh.GetText());
            params.push("V_Y:" + txtYearMonth.GetText().substring(0, 4));
            params.push("V_M:" + txtYearMonth.GetText().substring(4, 6));
            params.push("V_DAYINRQ:" + txtPrintDate.GetText());
            wap.common.printjx('ZhangDanDY',
                [
                    { key: 'QUERYPARAM', value: params.join("|") },
                    { key: 'BAOBIAOID', value: "100294" },
                    { key: 'USERINFO', value: "csms" }
                ]);
        }

        function print2() {
            var params = new Array();
            params.push("V_YONGHUH:" + txtYonghuh.GetText());
            params.push("V_Y:" + txtYearMonth.GetText().substring(0, 4));
            params.push("V_M:" + txtYearMonth.GetText().substring(4, 6));
            params.push("V_DAYINRQ:" + txtPrintDate.GetText());
            wap.common.printjx('ZhangDanDY',
                [
                    { key: 'QUERYPARAM', value: params.join("|") },
                    { key: 'BAOBIAOID', value: "100295" },
                    { key: 'USERINFO', value: "csms" }
                ]);
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div class="tabletitle1" align="center">
            计划执行情况告知
        </div>
        <asp:UpdatePanel runat="server" ID="UpdatePanel1">
            <ContentTemplate>
                <div style="width: 600px;">
                    <table>
                        <tr>
                            <td style="width: 100px; text-align: right">用户号：</td>
                            <td style="width: 100px"><dx:ASPxTextBox runat="server" ID="txtYonghuh" Width="100" ClientInstanceName="txtYonghuh">
                                <ClientSideEvents KeyPress="function(s,e){var key = event.keyCode;
                                        if( key==13){btnSearch.onClick();}}" />
                            </dx:ASPxTextBox></td>
                            <td style="width: 100px; text-align: right" >&nbsp;&nbsp;&nbsp;水量年月：</td>
                            <td style="width: 100px"><dx:ASPxTextBox runat="server" ID="txtYearMonth" Width="100" ClientInstanceName="txtYearMonth">
                                <ClientSideEvents KeyPress="function(s,e){var key = event.keyCode;
                                        if( key==13){btnSearch.onClick();}}" />
                            </dx:ASPxTextBox></td>
                            <td style="width: 100px; text-align: right" >&nbsp;&nbsp;&nbsp;打印日期：</td>
                            <td style="width: 100px"><dx:ASPxDateEdit runat="server" ID="txtPrintDate" Width="100"></dx:ASPxDateEdit></td>
                        </tr>
                    </table>
                </div>
                <div style="width: 700px;">
                    <fieldset style="border: 1px solid  cornflowerblue">
                    <legend style="font-weight: bold">账单信息</legend>
                        <table style="border-collapse:separate; border-spacing:0px 10px;">
                            <tr>
                                <td style="width: 80px; text-align: right">用户号：</td>
                                <td style="width: 100px"><dx:ASPxTextBox runat="server" ID="txtYonghuh2" Width="100" ReadOnly="True"></dx:ASPxTextBox></td>
                                <td style="width: 80px; text-align: right">&nbsp;&nbsp;&nbsp;用户名：</td>
                                <td><dx:ASPxTextBox runat="server" ID="txtYonghuMing" Width="250" ReadOnly="True"></dx:ASPxTextBox></td>
                            </tr>
                            <tr>
                                <td style="width: 80px; text-align: right">水量年：</td>
                                <td style="width: 100px"><dx:ASPxTextBox runat="server" ID="txtYear" Width="100" ReadOnly="True"></dx:ASPxTextBox></td>
                                <td style="width: 80px; text-align: right">&nbsp;&nbsp;&nbsp;水量月：</td>
                                <td><dx:ASPxTextBox runat="server" ID="txtMonth" Width="100" ReadOnly="True"></dx:ASPxTextBox></td>
                            </tr>
                        </table>
                    <table style="border-collapse:separate; border-spacing:0px 10px;">
                        <tr>
                            <td style="width: 80px; text-align: right">计划量：</td>
                            <td style="width: 100px"><dx:ASPxTextBox runat="server" ID="txtJiHuaL" Width="100" ReadOnly="True"></dx:ASPxTextBox></td>
                            <td style="width: 80px; text-align: right">&nbsp;&nbsp;&nbsp;实用量：</td>
                            <td style="width: 100px"><dx:ASPxTextBox runat="server" ID="txtShiYongL" Width="100" ReadOnly="True"></dx:ASPxTextBox></td>
                            <td style="width: 80px; text-align: right">&nbsp;&nbsp;&nbsp;加价量：</td>
                            <td><dx:ASPxTextBox runat="server" ID="txtJiaJiaL" Width="100" ReadOnly="True"></dx:ASPxTextBox></td>
                        </tr>
                        <tr>
                            <td style="width: 80px; text-align: right">加价金额：</td>
                            <td colspan="5"><dx:ASPxTextBox runat="server" ID="txtJiaJiaJE" Width="100" ReadOnly="True"></dx:ASPxTextBox></td>
                        </tr>
                    </table>
                </div>
                <div style="margin-top: 10px;">
                    <dx:ASPxButton runat="server" Text="打印托收格式" ID="btnPrint1" UseSubmitBehavior="False">
                        <ClientSideEvents Click="function(e,s){print1();}"></ClientSideEvents>
                    </dx:ASPxButton>
                    <dx:ASPxButton runat="server" Text="打印非托收格式" ID="btnPrint2" UseSubmitBehavior="False">
                        <ClientSideEvents Click="function(e,s){print2();}"></ClientSideEvents>
                    </dx:ASPxButton>
                </div>
                <div style="display:none"><dx:ASPxButton runat="server" ID="btnSearch" ClientInstanceName="btnSearch" OnClick="btnSearch_OnClick" UseSubmitBehavior="False"></dx:ASPxButton></div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </form>
</body>
</html>
